package com.moli.iov.admin.service;

import com.moli.iov.base.model.dto.req.VehicleFenceReqDto;
import com.moli.iov.base.model.dto.res.VehicleFenceResDto;
import com.moli.iov.model.dto.req.PageExtend;
import com.moli.iov.rest.RestResponse;

/**
 * 围栏管理
 * @author whl
 */
public interface VehicleFenceService {

  /**
   * 添加
   * @param dto
   * @return
   */
  RestResponse saveVehicleFence(VehicleFenceReqDto dto);

  /**
   * 修改
   * @param dto
   * @return
   */
  RestResponse updateVehicleFence(VehicleFenceReqDto dto);

  /**
   * 删除围栏
   *
   * @param dto
   * @return
   */
  RestResponse deleteVehicleFence(VehicleFenceReqDto dto);

  /**
   * 查询列表
   * @param dto
   * @return
   */
  RestResponse<PageExtend<VehicleFenceResDto>>  listVehicleFence(VehicleFenceReqDto dto);

  /**
   * 重绘
   * @param dto
   * @return
   */
  RestResponse redrawVehicleFence(VehicleFenceReqDto dto);
}
